package cn.JHai.rbac.mapper;

import cn.JHai.rbac.domain.Customer;
import cn.JHai.rbac.query.QueryCustomer;

import cn.JHai.rbac.query.QueryNameAndId;
import cn.JHai.rbac.query.QueryObject;
import cn.JHai.rbac.query.QueryTittleAndId;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Customer record);

    Customer selectByPrimaryKey(Long id);

    List<Customer> selectAll();

    int updateByPrimaryKey(Customer record);

    Long selectForCount(QueryCustomer queryCustomer);

    List<Customer> pageSelect(@Param("queryObject") QueryObject queryObject, @Param("queryCustomer") QueryCustomer queryCustomer);

    List<QueryNameAndId> selectSeller();

    List<QueryTittleAndId> selectJobs();

    List<QueryTittleAndId> selectsources();

    List<QueryTittleAndId> selectContacts();

    void ChangeSeller(@Param("id") Long id, @Param("eid") Long eid);

    void ChangeStaus(@Param("id") Long id, @Param("stus") Long stus);
}